﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp8
{
    public class  Test
    {
        public double num1;
        public double num2;
        public Test(double num1,double num2)
        {
            this.num1 = num1;
            this.num2 = num2;
        }
        public void Add ( )
        {
            double sum = this.num1 +this. num2;
            Console.WriteLine("和"+sum);
        }
        public void Minus ( )
        {
            double difference = this.num1 - this.num2;
            Console.WriteLine( "差"+difference);
        }
        public void Multiply()
        {
            double product=this. num1 * this.num2;
            Console.WriteLine("积"+product);
        }
        public void Divide( )
        {
            double quotient=this.num1 / this.num2;
            Console.WriteLine("商"+quotient);
        }
             
    }
}
